$(function() {

	$("#save-btn-commodityClassification").click(function() {
		var success = $('.validform').validate('submitValidate');
		if(success) {
			var oldPassword = $("#oldPassword").val(),
				newPassword = $("#newPassword").val(),
				replayPassword = $("#replayPassword").val();
			if(newPassword != replayPassword) {
				ly.toast("新密码与重复密码不同");
				return false;
			}
			$(".form").submitForm({
				nickName:window.localStorage.getItem("backstage-access-nickName"),
				oldPassword: md5(oldPassword),
				newPassword: md5(newPassword),
				replayPassword: md5(replayPassword),
				url: site.gateUrl + "/back/backUser/updateUserPassWordByIdAll",
				ajaxform: false,
			}, site.interUrl+"login.html");
		}

	});
});